import time
from lambda_helper.http_handler import HttpRequest

class ValidateHttp(HttpRequest):

    @HttpRequest.Authorize(status_code=200, body={ 'result': False, 'error': '你的访问被拦截了' })
    def get(self):
        return self.build_response(body={
            'result': True,
            'data': {
                'display_name': self.user_info.display_name,
                'platform': self.user_info.platform,
                'platform_id': self.user_info.platform_id,
            }
        })
